<template>
<div class="content">
    <mt-header fixed title="设备管理">
    <mt-button icon="back" @click.native="goback()" slot="left">返回</mt-button>
    <mt-button @click.native="add()" slot="right">
      <img :src="addImg" height="25" width="25" slot="icon">
    </mt-button>
    </mt-header>
    <equipment></equipment>
    </div>
</template>
<script>
import equipment from '@/component/equipment.vue'
export default {
  data () {
    return {
      addImg: require('@/assets/image/add.svg')
    }
  },
  components: {
    equipment
  },
  methods: {
    goback () {
      this.$router.go(-1)
    },
    add () {
      this.$router.push({
        path: '/category'
      })
    }
  }
}
</script>
<style lang="less" scoped>
.content {
  padding-top: 38px;
  .mint-cell img{
    margin-right: 4px;
  }
}
</style>
